package AnimalTest;

import AnimalTest.Cat;

public class LiHua extends Cat {
    public LiHua() {
    }

    public LiHua(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat(){
        System.out.println("一只叫做"+super.getName()+","+super.getAge()+"岁的狸花猫在吃鱼");
    }
    @Override
    public String toString() {
        return "名字是"+getName()+",年龄为"+getAge()+"岁的梨花猫";
    }
}
